<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
		<link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
	<script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<h2>节点列表</h2>
<form action="<?php echo U('Role/roleauth');?>" method="post">
<ul class="list-group">

<?php if(is_array($authlist)): foreach($authlist as $key=>$vo): ?><li class="list-group-item">
<?php if($vo['level']=='3'): ?>
<span><?php echo ($vo["html"]); ?><input type="checkbox" <?php if($vo['checked']) echo "checked"; ?> name="node_id[]" value="<?php echo ($vo["id"]); ?>"><?php echo ($vo["title"]); ?></span>
  <?php else: ?>
  </li>
  <li class="list-group-item"><?php echo ($vo["html"]); ?><input type="checkbox" <?php if($vo['checked']) echo "checked"; ?> value="<?php echo ($vo["id"]); ?>" name="node_id[]"><?php echo ($vo["title"]); ?> 
  </li>
<?php endif; endforeach; endif; ?>
	<input type="hidden" name="role_id" value="<?php echo ($_GET['id']); ?>" />
  <button type="submit" class="btn btn-default">添加</button>
</ul>

</form>
</div>

</body>
</html>